package com.xinqi.common.log.asynclog.enums;

import lombok.Getter;

/**
 * 业务类型
 *
 * @author dzy
 */
public enum AsyncType {

    /**
     * 资料库
     */
    RESOURCE("resource", "资料库"),

    /**
     * 测评
     */
    EXAM("exam", "测评"),

    /**
     * 作业
     */
    HOMEWORK("homework", "作业"),

    /**
     * 讨论
     */
    DISCUSS("discuss", "讨论"),

    /**
     * 用户注册
     */
    REGISTER("register", "用户注册"),

    LOGIN("login", "用户登录"),

    LOGOUT("logout", "退出登录"),

    USER_INFO("user_info", "用户信息"),

    USER_FEEDBACK("user_feedback", "用户反馈"),

    USER_COMPLAINT("user_complaint", "用户投诉"),

    /**
     * 加入班级
     */
    JOIN_CLASS("join_class", "加入班级"),

    /**
     * 创建课程
     */
    CREATE_COURSE("create_course", "创建课程"),

    /**
     * 其他
     */
    OTHER("other", "其他");

    @Getter
    private final String code;

    @Getter
    private final String describe;

    AsyncType(String code, String describe) {
        this.code = code;
        this.describe = describe;
    }
}
